#ifndef PARABOLATHROW_H
#define PARABOLATHROW_H

#include "objects/ball.h"

class ParabolaThrow
{
public:
    ParabolaThrow();

    void throwBall(float x, float y, float speed, float angle);
    void move();
    void reset();

    bool active_ball() const;
    const Ball& ball() const;
private:
    static const float gravity;
    static const float invalid_ball;
    static const float default_step;

    Ball ball_;
    float speed_;
    float angle_;
    float step_;
    float start_x_;
    float start_y_;
};

#endif // PARABOLATHROW_H
